package com.pro.common.service.admin.model.db;

import com.pro.common.api.CommonConst;
import com.pro.framework.api.enums.IEnumToDbDbId;
import com.pro.framework.api.model.IdModel;
import com.pro.framework.api.model.IdsModel;
import com.pro.framework.javatodb.annotation.JTDField;
import com.pro.framework.javatodb.annotation.JTDTable;
import com.pro.framework.javatodb.constant.JTDConst;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "执行器分组")
@JTDTable(sequences = {"KEY app_name (app_name)"}, module = CommonConst.Modules.admin)
public class XxlJobGroup extends IdModel implements IEnumToDbDbId {

    @Schema(description = "执行器AppName")
    private String appName;

    @Schema(description = "执行器名称")
    private String title;

    @Schema(description = "执行器地址类型：0=自动注册、1=手动录入")
    private Integer addressType;

    @Schema(description = "执行器地址列表，多地址逗号分隔")
    @JTDField(notNull = JTDConst.EnumFieldNullType.can_null)
    private String addressList;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
